Render custom php template into string
Render custom php template into string
Render custom php template into string
automatic plugin install availability: server configuration
Only Super Admins should be able to update plugins for a MS install which means that it doesn’t matter what site you’re on and every site using that plugin will have it updated automatically.
Trouble adding tiny mce to textarea in custom plugin
Embedding WYSIWYG Editor in Custom widget needs the declaration of the fields under a form function, this will create a WYSIWYG Editor in your widget. You can define your parameter, what all features you want to show. public function form( $instance ) { $rand = rand( 0, 999 ); $ed_id = $this->get_field_id( ‘wp_editor_’ . $rand … Read more
AFAIK there is no fail safe way to implement this into all available themes through a plugin, and IMHO, I really think this is more theme territory than plugin territory, but as I said, that is only my opinion. The big problem here is that no plugin (not even you) will ever know what markup … Read more
I resolved the issue by using $dir = plugins_url() . ‘/simple/acf/’; in step 2. I kept everything else the same. // 2. Customize ACF dir add_filter(‘acf/settings/dir’, ‘my_acf_settings_dir’); function my_acf_settings_dir( $dir ) { // update path $dir = plugins_url() . ‘/simple/acf/’; // return return $dir; }
Display wordpress post’s in popup?
MQtranslate is a fork of Qtranslate so the hooks should be the same, and to get Qtranslate to Work in custom taxonomies I use this: /** * qtranslate custom taxonomies */ function qtranslate_edit_custom_taxonomies(){ $args=array( ‘public’ => true , ‘_builtin’ => false ); $output=”object”; // or objects $operator=”and”; // ‘and’ or ‘or’ $taxonomies = get_taxonomies($args,$output,$operator); if … Read more
Add a check when the plugin is activated to see if the data(column/table) already exists in db or not ? If the data aldready exists then skip the db part and just mark the plugin as active.