本文整理汇总了PHP中wpgrade::get_redux_arg方法的典型用法代码示例。如果您正苦于以下问题:PHP wpgrade::get_redux_arg方法的具体用法?PHP wpgrade::get_redux_arg怎么用?PHP wpgrade::get_redux_arg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpgrade
的用法示例。
在下文中一共展示了wpgrade::get_redux_arg方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: remove_customizer_controls
function remove_customizer_controls($wp_customize)
{
$sections = wpgrade::get_redux_arg('remove_customizer_sections');
if (!empty($sections) && is_array($sections)) {
foreach ($sections as $key => $section) {
$wp_customize->remove_section($section);
}
}
}
示例2: foreach
}
// Style registers and enqueues
// ----------------------------
// auto-enqueue registered styles
foreach ($themeconfiguration['resources']['auto-enqueue-styles'] as $stylename) {
wp_enqueue_style($stylename);
}
}
/* for PRO users! -
* We would like to GetToKnowYourWorkBetter
*
* Invoked by wpgrade_callback_themesetup
*/
function wpgrade_callback_gtkywb()
{
$themedata = wpgrade::themedata();
$response = wp_remote_post(REQUEST_PROTOCOL . '//pixelgrade.com/stats', array('method' => 'POST', 'body' => array('send_stats' => true, 'theme_name' => wpgrade::shortname(), 'theme_version' => $themedata->get('Version'), 'domain' => $_SERVER['HTTP_HOST'], 'permalink' => get_permalink(1), 'is_child' => is_child_theme())));
}
/* for PRO users! -
* We would like to GetToKnowYourWorkBetter
*
*/
function wpgrade_add_redux_custom_style()
{
wp_enqueue_style('redux-custom-css', wpgrade::coreresourceuri('admin-panel/css/admin-panel.css'), array(), time(), 'all');
wp_enqueue_script('redux-custom-js', wpgrade::coreresourceuri('admin-panel/js/admin-panel.js'), array('jquery', 'redux-js', 'wp-ajax-response'), time(), true);
}
// Enqueue the admin page CSS and JS ONLY on themeoptions page
if (isset($_GET['page']) && $_GET['page'] == wpgrade::get_redux_arg('page_slug')) {
add_action('admin_enqueue_scripts', 'wpgrade_add_redux_custom_style', 99999999);
}