How to affect front page by plugin

If your intent is to remove that function/action only on the front page (not clear from your question), then this code if (is_front_page) { remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’); } This code needs to be outside of the ‘admin’ code area of the plugin. See this link for documentation on is_front_page() https://codex.wordpress.org/Function_Reference/is_front_page If that is not your … Read more

How to store in the database directly the translation?

I found the solution ! The problem was I loaded plugin domain only when plugins are loaded, not for the activation plugin. It resolves my problem… MyPLugin.php class WPGroupSubs { public function __construct(){ // Install needed components on plugin activation /* need to add this */ register_activation_hook( __FILE__, array( $this, ‘load_text_domain’ ) ); register_activation_hook( __FILE__, … Read more

How to customize the size of Featured Images or Post Thumbnails in WordPress?

Try This the_post_thumbnail(); // Without parameter ->; Thumbnail the_post_thumbnail( ‘thumbnail’ ); // Thumbnail (default 150px x 150px max) the_post_thumbnail( ‘medium’ ); // Medium resolution (default 300px x 300px max) the_post_thumbnail( ‘medium_large’ ); // Medium-large resolution (default 768px x no height limit max) the_post_thumbnail( ‘large’ ); // Large resolution (default 1024px x 1024px max) the_post_thumbnail( ‘full’ … Read more