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
{"type":"form","data":{"fields":[{"id":"section-1","element_id":"section-1","form_id":"wrapper-1537827779502-1868","condition_action":"show","condition_rule":"any","conditions":[],"type":"section","options":[],"cols":12,"section_title":"Project Leader","section_border":"false","section_subtitle":"","custom-class":"","wrapper_id":"wrapper-1537827779502-1868"},{"id":"name-1","element_id":"name-1","form_id":"wrapper-1511347711918-1669","condition_action":"show","condition_rule":"any","conditions":[],"type":"name","cols":4,"required":"true","field_label":"Project Leader Name","placeholder":"E.g. John","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix_description":"","fname_description":"","mname_description":"","lname_description":"","description":"","custom-class":"","wrapper_id":"wrapper-1511347711918-1669"},{"id":"email-1","element_id":"email-1","form_id |
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: Forminator Recent Entries Dashboard Widget | |
Plugin URI: https://premium.wpmudev.org/project/forminator-pro/ | |
Description: Display Forminator Form Entries in WordPress Dashboard Widget | |
Version: 0.1 | |
Author: Cvetan Cvetanov | |
Author URI: https://premium.wpmudev.org/profile/cvetan | |
*/ |
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 | |
//remove <?php when you paste inside your functions.php file | |
function admin_login_redirect( $redirect_to, $request, $user ) { | |
global $user; | |
if( isset( $user->roles ) && is_array( $user->roles ) ) { | |
if( in_array( "administrator", $user->roles ) ) { | |
return $redirect_to; | |
} |
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
<picture> | |
<source | |
media="(min-width: 900px)" | |
srcset="large-image_1x.jpeg 1x, large-image_retina.jpeg 2x" | |
type="image/jpeg > | |
<source | |
media="(min-width: 601px)" | |
srcset="medium-image_1x.webp 1x, medium-image_retina.jpeg 2x" | |
type="image/jpeg" > | |
<source |
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 | |
// First we'll add support for featured images | |
add_theme_support( 'post-thumbnails' ); | |
// Then we'll add our 2 custom images | |
add_image_size( 'featured-large', 1600, 400, true ); | |
add_image_size( 'blog-width', 800, 600 ); | |
// And then we'll add the custom size that spans the width of the blog to the Gutenberg image dropdown | |
add_filter( 'image_size_names_choose', 'wpmudev_custom_image_sizes' ); |
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 | |
get_header(); | |
if (have_posts()) : | |
while (have_posts()) : | |
the_post(); ?> | |
<h1><?php the_title() ;?></h1> | |
<?php | |
the_post_thumbnail( 'featured-large' ); | |
the_content(); |
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_filter( 'image_size_names_choose','wpmudev_custom_image_sizes' ); | |
function wpmudev_custom_image_sizes( $sizes ) { | |
return array_merge( $sizes, array( | |
//Add your custom sizes here | |
'custom-image-square' => __( 'Square' ), | |
'blog-width' => __( 'Blog Content Full Width' ), |
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 | |
//If you're using this in your functions.php file, remove the opening <?php | |
//Replace style-login.css with the name of your custom CSS file | |
function my_custom_login_stylesheet() { | |
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/style-login.css' ); | |
} | |
//This loads the function above on the login page | |
add_action( 'login_enqueue_scripts', 'my_custom_login_stylesheet' ); |
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 | |
//remove <?php when you paste into your functions.php file | |
function login_error_override() | |
{ | |
return 'Incorrect login details.'; | |
} | |
add_filter('login_errors', 'login_error_override'); |
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
body.login div#login h1 a { | |
background-image: url('login-logo.png'); | |
} |
NewerOlder