This file contains 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: Fullscreen Admin Panel. | |
* Plugin URI: https://dlxplugins.com | |
* Description: A demo plugin to create a fullscreen admin panel. | |
* Version: 1.0.0 | |
* Requires at least: 6.0 | |
* Requires PHP: 7.3 | |
* Author: DLX Plugins | |
* Author URI: https://dlxplugins.com |
This file contains 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 gym_castomization($wp_customize) { | |
//add panel | |
$wp_customize->add_panel('gym_panel', array( | |
'priority' => 30, | |
'capability' => 'edit_theme_options', | |
'title' => esc_html__('Gym settings', 'gym'), | |
'description' => esc_html__('Page settings', 'gym'), | |
)); |
This file contains 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 | |
/** | |
* Add featured image column to WP admin panel - posts AND pages | |
* See: https://bloggerpilot.com/featured-image-admin/ | |
*/ | |
// Set thumbnail size | |
add_image_size( 'j0e_admin-featured-image', 60, 60, false ); |
This file contains 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
// What were searching for | |
$args = array( | |
'post_type' => $post_type, | |
'post_status' => 'publish' | |
); | |
// Now, if the category has been selected AND it doesn't equal the "show all" value | |
if(isset($_POST['category']) && $_POST['category'] != -1) { | |
// Explode the string into an array | |
$categories = array_map('intval', explode(',', $_POST['category'])); |
This file contains 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 | |
/** | |
* The template for displaying user profile in front_end | |
* | |
* This is the template that displays user profile in fron_end. | |
* | |
*/ | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; |
This file contains 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 create_ACF_meta_in_REST() { | |
$postypes_to_exclude = ['acf-field-group','acf-field']; | |
$extra_postypes_to_include = ["page"]; | |
$post_types = array_diff(get_post_types(["_builtin" => false], 'names'),$postypes_to_exclude); | |
array_push($post_types, $extra_postypes_to_include); | |
foreach ($post_types as $post_type) { | |
register_rest_field( $post_type, 'ACF', [ |
This file contains 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 | |
add_action( 'init', 'my_theme_custom_post' ); | |
function my_theme_custom_post() { | |
register_post_type( 'agent', | |
array( | |
'labels' => array( | |
'name' => __( 'Agents' ), |
Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.
This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.
See Contributing.
NewerOlder