Description


If you want to add a new setting section under Downloads –> Settings –> Basic , you can use this hook.

Parameters


No arguments are passed to this hook.

Usage


To add a new setting section under Basic settings.
add_action('basic_settings_section','my_basic_settigs_section');

Examples


<?php
    add_action('basic_settings_section','my_basic_settigs_section');
    function my_basic_settigs_section() {
?>

   <div class="panel panel-default">
   <div class="panel-heading">Misc Settings</div>
   <div class="panel-body">
   <table class="frm" width="100%" cellspacing="0" cellpadding="5">
     <tbody>
       <tr>
         <td>Twitter Bootstrap</td>
         <td>
         <select name="__wpdm_twitter_bootstrap">
            <option value="active">Active</option>
            <option selected="selected" value="djs">&gt;Disable JS</option>
            <option selected="selected" value="dcss">&gt;Disable CSS</option>
            <option selected="selected" value="dall">&gt;Disable Both</option>
         </select>
        </td>
       </tr>
     </tbody>
   </table>
   </div>
   </div>
<?php
    }
?>

Related


Action Hooks

basic_settings

Last Updated: Jun 29, 2014


Leave a Reply