Q: How to pull data from custom table to populate zustomizer setting/control select options

So i think I’ve found the answer to my own question. I modified the code in the original tablequerytest.php which queries the custom table and stores results from this: <?php global $wpdb; //Accessing WP Database (non-WP Table) use code below. $results = $wpdb->get_results(‘SELECT alias FROM wp_revslider_sliders’); foreach ($results as $result) { $revchoices = array(“text” => … Read more

Populate editor with some content of a page with a page template

The is_page_template() function will not work in the admin. The second parameter of the default_content filter is the $post object. Your best bet is to leverage that to get the stored value for the page template in the post meta information: add_filter( ‘default_content’, ‘wpse_editor_default_content’, 10, 2 ); function wpse_editor_default_content( $content, $post ) { if ( … Read more