init_metabox(); } } public function init_metabox() { add_action( 'faqs_add_form_fields', array( $this, 'render_metabox' ), 10, 2 ); add_action( 'faqs_edit_form_fields', array( $this, 'render_metabox' ), 10, 2 ); add_action( 'admin_enqueue_scripts', array( $this, 'load_scripts_styles') ); } public function render_metabox( $post ) { add_action('admin_footer', array($this,'faq_css')); add_action( 'admin_footer', array( $this, 'Setting_field_js' ) ); } /* * كود الاتش تي ام ال للمودال */ public function faq_css() { $c = new AFAQCBC_q_a_faq_controls_class(); ?>
= 1 ) { return; } ?>