Tag Info

Hot answers tagged

3

You'll need to log onto your FTP server and goto the wp-content folder -> plugins -> and delete the GZIP plugin you have installed. If you are not sure about FTP, you can probably try and go through your web server control panel, they usually have some sort of file browsing option. You might also need to check the .htaccess file also, but just try removing ...


2

You should use pre_update_option_{option_name} filter. Example:- function system_save_number( $new_value, $old_value ) { mail('my@email.com','here',print_r($old_value ,true) . "\n\n" . print_r($new_value,true)); return $new_value; } function system_init_actions() { add_filter( 'pre_update_option_system_number', 'system_save_number', 10, 2 ); } ...


1

There's a much better and more reliable way than naming your plugin "ZZ" - use a delayed hook on plugins_loaded, which fires after all plugins are loaded: function wpse_191178_plugins_loaded() { // Do your stuff } add_action( 'plugins_loaded', 'wpse_191178_plugins_loaded', 100 );


1

Just extend your search form with a hidden input: (notice the last input field) <form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>"> <label> <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> <input type="search" ...


1

The plugin you mentioned is only reportedly tested up to WordPress version 3.6.1. I would not (in general) recommend abandoned plugins, because they might impose security risks. Additionally it uses PHP4 class constructors, that might soon be deprecated and it calls non static methods in a static way. If you remove the plugin, you should be able to use ...


1

The reason the link isn't working is because you haven't formatted it correctly. This: return '<h3><a href="www.google.com">Hello World</a></h3>'.$content; Should be this: return '<h3><a href="https://www.google.com/">Hello World</a></h3>'.$content; To answer your other question: There are a lot of ...


1

you can override the shortcode like this : add_action("init", function () { remove_shortcode("timelinr"); add_shortcode("timelinr", function ($atts, $content) { // call the shortcode of jqueryTimelinrLoad $result = $GLOBALS["jqueryTimelinrLoad"]->shortcode($atts, $content); // dequeue style ...


1

Both DataTables Editor and WordPress are trying to use the same reserved parameter, 'action'. WordPress is using $_REQUEST['action'] to route the request in admin-ajax.php line 86. DataTables Editor is using $_POST['action'] to tell the server-side processing script what action to apply ( insert / delete / update - see: ...


1

Put code below into your theme's functions.php: add_action( 'template_redirect', function() { is_user_logged_in() || auth_redirect(); }); function fpw_custom_login_message() { $message = '<p style="text-align: center">Until this site goes public you need to be registered to see the content<br />&nbsp;</p>'; return ...


1

Use is_page(). The is_page() function accepts page title, slug or id. Documentation <?php if(is_page('myscript')) { include '/path/to/myscript.php'; } ?> UPDATE To add it to the content, you have two options 1. Find the content function in your template Find either the_content() or get_the_content() in your template. Place it immediately ...


1

Scripts should be enqueued on wp_enqueue_scripts action hook, which runs after init action. So dequeuing on init won't work because sripts are not enqueued yet. Before enqueued scripts are printed, wp_print_scripts action is triggered so you can dequeue or unregister scripts safely at this moment: add_action( 'wp_print_scripts', 'drw_timelinr_dequeue' ); ...



Only top voted, non community-wiki answers of a minimum length are eligible