Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/vendor-prod/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/vendor-prod/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/vendor-prod/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/vendor-prod/pimple/pimple/src/Pimple/Container.php on line 143

Deprecated: Return type of iThemesSecurity\Lib\Lockout\Execute_Lock\Context::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/lockout/execute-lock/abstract-context.php on line 60

Deprecated: Return type of iThemesSecurity\Lib\Lockout\Execute_Lock\Context::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/lockout/execute-lock/abstract-context.php on line 66

Deprecated: Return type of iThemesSecurity\Lib\Lockout\Execute_Lock\Context::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/lockout/execute-lock/abstract-context.php on line 72

Deprecated: Return type of iThemesSecurity\Lib\Lockout\Execute_Lock\Context::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/lockout/execute-lock/abstract-context.php on line 76

Deprecated: Return type of iThemesSecurity\Lib\Lockout\Execute_Lock\Context::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/lockout/execute-lock/abstract-context.php on line 56

Deprecated: Return type of ITSEC_Lib_Distributed_Storage_Cursor::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-distributed-storage.php on line 578

Deprecated: Return type of ITSEC_Lib_Distributed_Storage_Cursor::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-distributed-storage.php on line 585

Deprecated: Return type of ITSEC_Lib_Distributed_Storage_Cursor::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-distributed-storage.php on line 606

Deprecated: Return type of ITSEC_Lib_Distributed_Storage_Cursor::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-distributed-storage.php on line 613

Deprecated: Return type of ITSEC_Lib_Distributed_Storage_Cursor::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-distributed-storage.php on line 620

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the it-l10n-ithemes-security-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-includes/functions.php on line 6114
Wordpress development Archives - CodeGurus

Category: Wordpress development

  • Add custom fields under wp general settings

    Add custom fields under wp general settings

    To add custom fields under wordpress general settings without hacking core code use this as example. Of course you can make it better and write some fancy class for doing this. add_filter(‘admin_init’, ‘my_general_settings_register_fields’); function my_general_settings_register_fields() { register_setting(‘general’, ‘my_field’, ‘esc_attr’); add_settings_field(‘my_field’, ‘<label for=”my_field”>’.__(‘My Field’ , ‘my_field’ ).'</label>’ , ‘my_general_settings_fields_html’, ‘general’); } function my_general_settings_fields_html() { $value =…

  • WordPress custom menu display

    WordPress custom menu display

    Just a small example of how to build custom menu output in WordPress. $menu_args = array(‘menu’ => ‘Main menu’, ‘echo’ => 0) ; $menu_string = wp_nav_menu($menu_args); $xml = new SimpleXMLElement($menu_string); $out = false; foreach ($xml->ul[0] as $li) { $classes = array(‘current-page-ancestor’, ‘current-menu-item’, ‘current-menu-parent’); if (strstr($li[‘class’], ‘current-page-ancestor’) || strstr($li[‘class’], ‘current-menu-item’) || strstr($li[‘class’], ‘current-menu-parent’)) { $out =…

  • Custom columns for custom post type

    Custom columns for custom post type

    When using hook “manage_MY_TYPE_NAME_posts_columns” or “manage_MY_TYPE_NAME_posts_custom_column” on WP version >= 3.1 the syntax is little bit changed. Here’s the example: add_filter(‘manage_MY_TYPE_NAME_posts_custom_column’, ‘my_column_values’); add_filter(‘manage_MY_TYPE_NAME_posts_columns’, ‘my_columns’); function my_columns($columns) { $columns[‘custom_col’] = __(‘Field name text’); return $columns; } function my_column_values($name, $post_id) { global $post, $typenow; // Use $typenow to check custom post type switch ($name) { case ‘custom_col’:…

  • Disable wordpress core updates display

    Disable wordpress core updates display

    Ever had a situation where you have given admin right to the client?  What usally happens is that client will update the wordpress core. If we are talking about custom solutions, its most definitely not safe to update the core. Here’s a solution for disabling  the opportunity to update WordPress core. add_action( ‘init’, create_function( ‘$a’,…

  • Plugin GeoMashup

    Plugin GeoMashup

    GeoMashup plugin usage in WordPress template files. <?php echo GeoMashup::map(); ?>

  • XHTML SEO friendly sample header

    XHTML SEO friendly sample header

    Standard solution for developing WordPress header. SEO friendly and can be copied every time new template is created. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>> <head profile=”http://gmpg.org/xfn/11″> <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /> <title><?php wp_title(‘|’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title> <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>”…

  • Show custom field if one exists

    Show custom field if one exists

    Often we have custom fields in containers ( DIV, SPAN etc. ) designed by CSS. Here’s a solution for displaying custom field content, if one exists. <?php if ( get_post_meta($post->ID, ‘custom-field-name’, true) ) : ?> <?php echo get_post_meta($post->ID, ‘custom-field-name’, true); ?> <?php endif; ?>