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
/** | |
* Add additional menu | |
*/ | |
function register_additional_menus() { | |
register_nav_menu( 'top-menu', __( 'Top Menu' ) ); | |
} | |
add_action( 'init', 'register_additional_menus' ); | |
/** | |
* Add scripts to astra_header_before |
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 | |
/** | |
* Plugin Name: Get Posts via REST API | |
* Description: Gets the latest two posts from a blog via the REST API. Blog link, title and date included. | |
* Plugin URI: https://renemorozowich.com | |
* Author: Rene Morozowich | |
* Version: 1.0 | |
* Text Domain: getpostsviarestapi | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt |
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 | |
// Customize columns in WP Job Manager [job_dashboard]. | |
function custom_job_manager_job_dashboard_columns( $columns ) { | |
// Remove all columns. | |
unset( $columns['job_title'] ); | |
unset( $columns['filled'] ); | |
unset( $columns['date'] ); | |
unset( $columns['expires'] ); | |
NewerOlder