how to not show plugin in admin area

To complement @s_ha_dum’s answer: If you just want to offer a function to be used in a theme, make it a custom action. Sample: add_action( ‘call_hello_world’, ‘hello_world’ ); Now, in a theme, the author can call your function with … do_action( ‘call_hello_world’ ); … and the function will print its content only where the author … Read more

How to find out if an wp-admin action edited a file?

The system redirects after an update with updated=true. You could check for that GET parameter on the load-theme-editor.php hook, something like: add_action( ‘load-theme-editor.php’, function() { if (isset($_GET[‘updated’]) && true == $_GET[‘updated’]) { // clear the cache } } ); I looked for more specific hooks and couldn’t find any, by the way.

Change the Return URL from the Customizer

Yes, this is possible. On the link, there you create for the customizing view can you add a return parameter with the url, for this option. I mean, you must change the the link for the Customize Link in the Admin Menu. The follow demonstrate this. I create at fist a link inside the “Appearance” … Read more

I can’t access my admin page after changing main url

Not sure why you would want to make that change, but if worst comes to worst, you can change it back via the database. Assuming you can access your MySQL database directly, simple navigate to the wp_options table and change the value of siteurl and/or home to your desired values. EDIT: Alternatively, if you can … Read more

How to control contextual help section by code?

You could also trigger/simulate the help button being clicked by binding to the ready event. Pre jQuery 1.7 <script type=”text/javascript”> jQuery(document).bind( ‘ready’, function() { jQuery(‘a#contextual-help-link’).trigger(‘click’); }); </script> jQuery 1.7+ (bind deprecated as of 1.7) <script type=”text/javascript”> jQuery(document).on( ‘ready’, function() { jQuery(‘a#contextual-help-link’).trigger(‘click’); }); </script> The difference here is that you’ll see the help section slide down … Read more