Using Class loader in WordPress boilerplate

Thanks Paul, you led me to the solution. What I did In class-mypluging-admin.php, I added this: /** * Additional arguments for this plugin. * * @since 1.0.0 * @access private * @var array $args The current arguments of this plugin. */ private $args; /** * Initialize the class and set its properties. * * @since … Read more

require_once not working in plugin wordpress

The issue was resolved. I had to hook the custom classes to the customize_register action hook. Something like this – function itlst_extend_customize_control() { if ( class_exists(‘WP_Customize_Control’) ) { class itlst_WP_Customize_Property_Control extends WP_Customize_Control { /** * Render the control’s content. */ public function render_content() { $dropdown = wp_dropdown_categories( array( ‘name’ => ‘_customize-dropdown-categories-‘ . $this->id, ‘echo’ => … Read more

co-authors plugin – inline listing

solved using for loop instead of foreach: function inl_users() { if ( function_exists( ‘get_coauthors’ ) ) { $coauthors = get_coauthors(); for ($i = 0; $i < count($coauthors); $i++){ $autArray[] = ‘<a href=”https://wordpress.stackexchange.com/questions/404167/. get_author_posts_url( $coauthors[$i]->ID ) .”>’ . $coauthors[$i]->display_name . ‘</a>’; } echo implode(“, “, $autArray); } does anoyone know why?