php - Wordpress, add custom button on post type list page -


i trying add custom button on top of post type page image enter image description here

is there filter or action can use add custom button there?

thanks

i found way done not happy procedure. please add answer if find better way. mean while, might of help.

add_action('admin_head-edit.php','addcustomimportbutton'); 

i need on edit page, using admin_head-edit.php action, can use admin_head or other (not specific requirement)

/**  * adds "import" button on module list page  */ public function addcustomimportbutton() {     global $current_screen;      // not our post type, exit earlier     // can remove if condition if don't have specific post type restrict to.      if ('module' != $current_screen->post_type) {         return;     }      ?>         <script type="text/javascript">             jquery(document).ready( function($)             {                 jquery(jquery(".wrap h2")[0]).append("<a  id='doc_popup' class='add-new-h2'>import</a>");             });         </script>     <?php } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -