How to load another page file of my custom plugin file
How to load another page file of my custom plugin file
How to load another page file of my custom plugin file
This is possible, but you can only nest one level down, after that the shortcode regexp parser flips out. So your example would be okay, but [item1] would not be able to contain even more nested shortcodes. To enable nesting, just go ahead and do: add_shortcode(‘data’, function($attributes, $content=””) { return do_shortcode($content); } Relevant article: http://www.sitepoint.com/wordpress-nested-shortcodes/
Tried everything, finally rebuilt the plugin from ground up, split into several smaller ones. Installed and activated one by one and the problem was fixed. Everything works now.
the_content(), output of which you are filtering, is a template tag. It’s meant to be used as part of HTML page. One page load cannot simultaneously be HTML page and PDF download. File download you are generating needs to happen before HTML template is loaded, for example on template_redirect hook and exit after so that … Read more
Sessions in plugin development?
I found the solution: function rating_install(){ //Funcion que genera la instalacion del plugin global $wpdb; $table_name = $wpdb->prefix.”rating”; $create = “CRETA TABLE “.$table_name.” ( ” . “id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, ” . “url TINYTEXT NOT NULL, ” . “descripcion TINYTEXT NOT NULL ) “; $wpdb->query($create); /*require_once(ABSPATH.”wp-admin/includes/upgrade.php”); dbDelta($create);*/ } function rating_uninstall(){ … Read more
Use this code register_activation_hook(__FILE__, ‘rating_install’); register_deactivation_hook(__FILE__, ‘rating_uninstall’); function rating_install(){ global $wpdb; $table_name = $wpdb->prefix.”rating”; $create = “CRETA TABLE “.$table_name.” ( ” . “id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, ” . “url TINYTEXT NOT NULL, ” . “descripcion TINYTEXT NOT NULL ) “; $wpdb->query($create); } function rating_uninstall(){ global $wpdb; $table_name = $wpdb->prefix.”rating”; $drop … Read more
Assuming you’re running cron jobs under your user account, it will have access to any folder that your account has read access to. If you do not need them to be publicly accessible, and you have access to a folder outside your public web root, then for security purposes you should put them outside of … Read more
i finally know why this code not work. as menstioned by Jorn Lund in the comment that jQuery(document).ready() will fail when script loaded async ( i still dont know is my code load async) but with in mind i change from jQuery(document).ready() to self execution function (function($){ alert(“hello”); })(jQuery); and the code work very well … Read more
Forcing ALL plugin Admin menus into a separate menu