WP Fastest Cache -> Render Blocking Js -> Exclude Js Sources

You could use the script_loader_tag filter hook to accomplish this. This hook passes in the tag HTML that you can search on, then add in your data attribute. /** * Modify script tags as they’re loaded * * @param String $tag_html * * @return String $tag_html */ function wpse379555_script_tag( $tag_html ) { if( false === … Read more

Changing the Default New User Notification Email

Try it with a filter: add_filter( ‘wp_new_user_notification_email’, ‘custom_wp_new_user_notification_email’, 10, 3 ); function custom_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) { // filter stuff in $wp_new_user_notification_email here return $wp_new_user_notification_email; } Source: https://developer.wordpress.org/reference/functions/wp_new_user_notification/#comment-3130

Add style to body based on url

for your home page: On index.php or your home page custom file use: if (is_home()){ echo ‘hi home!’; } for any other page except 404: use the file page.php or the custom one: for example the link is www.xyz.pt/chat/ if (is_page(‘chat’)){ echo ‘hi page!’; } for page 404: if (is_404()){ echo ‘hi error 404’; }

Display pagination in reservation Plugin and and Print table as pdf

hi i find the solution by : https://stackoverflow.com/questions/5322266/add-pagination-in-wordpress-admin-in-my-own-customized-plugin $pagenum = isset( $_GET[‘pagenum’] ) ? absint( $_GET[‘pagenum’] ) : 1; $limit = 10; // number of rows in page $offset = ( $pagenum – 1 ) * $limit; $total = $wpdb->get_var( “SELECT COUNT(`id`) FROM {$wpdb->prefix}table_name” `); $num_of_pages = ceil( $total / $limit );` i change this … Read more