Plugin / Function Tweaker

Manoj Thulasidas

Frequently Asked Questions (FAQ)

Searching The easiest way to install this plugin is to use the WordPress Admin interface. Go to your admin dashboard, find the “Plugins” menu, and click on “Add New”. Search for this plugin and click on “Install Now” and follow the WordPress instructions. Uploading If you want to download it and manually install, you can again use the WordPress dashboard interface. First download the plugin zip file to your local computer. Then go to your admin dashboard, find the “Plugins” menu, and click on “Add New”. After clicking on the “Add New” menu item as above, click on “Upload” (below the title “Install Plugins” near the top). Browse for your downloaded zip file, upload it and activate the plugin. FTP Upload the Function Tweaker plugin (the whole a-function-hitman folder) to the ‘/wp-content/plugins/’ directory. Activate the plugin through the ‘Plugins’ menu in WordPress. Go to the Setup -> Function Tweaker and kill or revive the functions. If you have other functions you would like to modify, please edit the plugin code hitman.php and look for the variable $funs around line 82. Add to the list the name of the function you want to redefine. You the provide your own defintions of the function in the file redefinedFunctions.php.
Function Tweaker helps you troubleshoot and redefine the functions plugin_dir_url, plugins_url and plugin_basename to work properly. These functions may not work as expected if you have symbolic links in your WordPress installation. Here is an example of the wrong output: Output of plugin_dir_url(): http://localhost/dev/blog/wp-content/plugins/Applications/XAMPP/xamppfiles/htdocs/dev/blog-assets/wp-content/plugins/hitman/ Output of plugins_url(): http://localhost/dev/blog/wp-content/plugins/Applications/XAMPP/xamppfiles/htdocs/dev/blog-assets/wp-content/plugins/hitman/hitman.php Output of plugin_basename(): Applications/XAMPP/xamppfiles/htdocs/dev/blog-assets/wp-content/plugins/hitman/hitman.php After correcting the issue, the right output is: Output of plugin_dir_url(): http://localhost/dev/blog/wp-content/plugins/hitman/ Output of plugins_url(): http://localhost/dev/blog/wp-content/plugins/hitman/hitman.php Output of plugin_basename(): hitman/hitman.php
Go to the Function Tweaker admin page. You will see the following help text message: First hit the “Test Functions” button. Look at the output above. Especially the one against plugins_url() If it looks incorrect, you may be able to fix it in two ways. If the plugin is offering to define WP_CONTENT_DIR, please do so. If the plugin is advising you to define it in your wp_config.php, please do so. Hit the “Test Functions” button again. Does the output look fine? If the function output still does not look right, click on the “Kill Functions” button and then hit the “Test Functions” button again. The output should have the right values now. If not, sorry, I am out of ideas. You may look at the plugin code in redefinedFunctions*.php and may be able to fix your issues. If you do, please leave a comment here so that others can benefit from your efforts.
In most cases, defining your WP_CONTENT_DIR properly is good enough to solve the issue. The “Kill Functions” button basically removes the current definitions of the functions and replaces them with what is in the redefinedFunctions1.php. For it to work, your PHP installation will need to have a function called rename_function, which is part of the APD package. If this package is not found, the plugin will gracefully exit.

Ratings

5
1 reviews

Rating breakdown

Details Information

Version

2.50

First Released

05 Mar, 2012

Total Downloads

1,783

Wordpress Version

3.1 or higher

Tested up to:

4.8.11

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.