Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php add custom button in wordpress editor

add_action( 'manage_post_type_posts_custom_column' , 'my_custom_column', 10, 2 );
function my_custom_column( $column, $post_id ) {
    $my_column_name='NAME-OF-THE-COLUMN';
    switch ( $column ) {
        case $my_column_name:
            echo '<button>My Button</button>';
            break;
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: sendmail php 
Php :: php curl empty response 
Php :: status messages wordpress settings form 
Php :: minishlink/web-push v5.2.5 requires ext-gmp * 
Php :: laravel list of models 
Php :: parse json nested array form url in php 
Php :: create laravel 8 resource route 
Php :: job with queue name 
Php :: - in php 
Php :: php webpage to string 
Php :: php html to pdf 
Php :: eloquent batch insert 
Php :: localhost redirected you too many times. php 
Php :: nginx codeigniter remove index.php 
Php :: wordpress debug mode 
Php :: lenght de un array php 
Php :: clear cache in laravel without artisan 
Php :: pdo mysqli error handling 
Php :: php string to date 
Php :: laravel model column default value 
Php :: get php ini config from terminal 
Php :: toastr in php 
Php :: two column date compare in php 
Php :: Displaying Custom Navigation Menus in WordPress Themes 
Php :: laravel sharing record 
Php :: laravel order by before group by 
Php :: Get All dates of a month with laravel carbon 
Php :: php list all files in directory 
Php :: how to add multiple images in php 
Php :: laravel relationship delete all 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =