Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'after_setup_theme', function () {
- remove_action( 'tgmpa_register', 'mb_aio_load_free_extensions' );
- }, 20 );
- add_action( 'tgmpa_register', function() {
- $plugins = array(
- array(
- 'name' => 'Meta Box',
- 'slug' => 'meta-box',
- 'required' => true,
- ),
- // Add more free extensions here
- );
- $config = array(
- 'id' => 'meta-box-aio',
- 'parent_slug' => 'meta-box',
- 'strings' => array(
- 'notice_can_install_required' => _n_noop(
- // translators: 1: plugin name(s).
- 'The Meta Box AIO plugin requires the following plugin: %1$s.',
- 'The Meta Box AIO plugin requires the following plugins: %1$s.',
- 'meta-box-aio'
- ),
- 'notice_can_install_recommended' => _n_noop(
- // translators: 1: plugin name(s).
- 'The Meta Box AIO plugin recommends the following plugin: %1$s.',
- 'The Meta Box AIO plugin recommends the following plugins: %1$s.',
- 'meta-box-aio'
- ),
- ),
- );
- tgmpa( $plugins, $config );
- } );
Advertisement
Add Comment
Please, Sign In to add comment