Support » Plugins » Hacks » Plugin not listed

  • Resolved Adrian Preuß


    A simple Plugin did’nt work on Version 3.2.1 and 3.3.

    Step 1:
    Create the Plugin directory with the name “plugin-references” on wp-content/plugins/

    Step 2:
    Create the Main-File of the Plugin with the name “plugin-references.php” on wp-content/plugins/plugin-references/

    Step 3:
    Fill the Plugin-File with content:

    		Plugin Name: Plugin Reference
    		Plugin URI:
    		Version: 1.0
    		Author: Adrian Preuß
    		Author URI:
    	function plugin_reference($content) {
    		$content = str_replace("[plugin-reference]", "Hello, iam the Plugin!", $content);
    		return $content;
    	add_filter('the_content', 'plugin_reference');

    Step 4:
    Activate Plugin,..

    The Plugin can’t be activated. The Plugin are not on the Plugin-List in the Administration.

    On Frontend (if WP-Debug on) give PHP a error/warning:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /****/wp-includes/plugin.php on line 170

  • The topic ‘Plugin not listed’ is closed to new replies.