This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Magic Login Pro + AutomateWoo Integration | |
| * Simple file-based variable registration | |
| * | |
| * @package PrintSolutionsAutomation | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function list_posts_for_edit(){ | |
| if(is_user_logged_in()){ | |
| $args = array( | |
| 'post_type' => '****POST_TYPE_HERE****', | |
| ); | |
| $posts = new WP_Query($args); | |
| if($posts->have_posts()){ | |
| $results = '<ul>'; | |
| while($posts->have_posts()){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |