Notifications Bar on home page only

Using the very example from the Codex in the Settings API section. Put it in the theme’s functions.php: add_action(‘admin_init’, ‘eg_settings_api_init’); function eg_settings_api_init() { add_settings_section( ‘eg_setting_section’, ‘Example settings section in reading’, ‘eg_setting_section_callback_function’, ‘reading’ ); add_settings_field( ‘eg_setting_name’, ‘Example setting Name’, ‘eg_setting_callback_function’, ‘reading’, ‘eg_setting_section’ ); register_setting(‘reading’,’eg_setting_name’); } function eg_setting_section_callback_function() { echo ‘<p>Intro text for our settings section</p>’; } … Read more

How to use WP-reCAPTCHA on a form

That plugin is only for comment, registration and email spam protection. You need a plugin like reCAPTCHA Form if you want to create contact forms protected by the reCAPTCHA system.

How to skip woocommerce PayPal redirection?

On page class-wc-gateway-paypal.php -> $this->liveurl=”http://www.yourdomain.com/page-name/”; Then in the theme functions.php: remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ ); add_filter( ‘pre_site_transient_update_plugins’, create_function( ‘$a’, “return null;” ) );