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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -