wordpress - Include a file after plugin loaded? -
wordpress - Include a file after plugin loaded? -
i writing plugin , want include file when satisfied conditions or user take include them. after include, functions (in file include later) not run ?
if ( isset( $registered[$add_on] ) && ! isset( $enabled_add_ons[$add_on] ) ) { include( $registered[$add_on]['file'] ); }
these in file :
function add_on( $meta_boxes ) { $feature_meta_box= array( ... ); array_unshift( $meta_boxes[1]['fields'], $feature_meta_box); homecoming $meta_boxes; } add_filter('add_metabox', 'add_on');
can tell me how can load file ?
wordpress wordpress-plugin
Comments
Post a Comment