Move settings page to custom post type section
-
I have the plugin installed and it works great so thank you.
My question is I can see the code to the settings page within the plugin itself as shown below however I want it to be displayed as an option under my custom post type menu and not within the settings page area of my dashboard. My custom post type is called wanted. How can I achieve this move of the setting page please?
/** * register the setting on the media settings page */ function media_setting() { register_setting( 'media', // settings page 'dfi_image_id', // option name array( &$this, 'input_validation' ) // validation callback ); add_settings_field( 'dfi', // id __( 'Default featured image', self::L10n ), // setting title array( &$this, 'settings_html' ), // display callback 'media', // settings page 'default' // settings section ); }
Any help would be greatly appreciated. Thanks in advance.
Regards,
Gareth
https://www.ads-software.com/plugins/default-featured-image/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Move settings page to custom post type section’ is closed to new replies.